const overlay = function (type) {
    if (type == 'B') {
        return {
            line: {
                show: false,
                color: 'rgba(0, 194, 120, 1)'
            },
            polygon: {
                style: 'stroke',
                borderColor: 'rgba(0, 194, 120, 1)'
            },
            text: {
                style: 'fill',
                backgroundColor: 'rgba(0, 194, 120, 1)',
                color: '#fff',
                size: 8,
                borderRadius: 2,
                paddingLeft: 2,
                paddingRight: 2,
                paddingTop: 2,
                paddingBottom: 2,
            }
        }
    } else {
        return {
            line: {
                show: false,
                color: 'rgba(255, 74, 96, 1)'
            },
            polygon: {
                style: 'stroke',
                borderColor: 'rgba(255, 74, 96, 1)'
            },
            text: {
                style: 'fill',
                backgroundColor: 'rgba(255, 74, 96, 1)',
                color: '#fff',
                size: 8,
                borderRadius: 2,
                paddingLeft: 2,
                paddingRight: 2,
                paddingTop: 2,
                paddingBottom: 2,
            }
        }
    }
}

export default overlay;